% Christopher J. Whalen
% University of Illinois
% 06/29/04

% Purpose - to convert between RAI and LPI coordinate schemes

function [xyz] = rai2lpi(xyz)

nx = 191;
ny = 236;
nz = 171;

for i=1:size(xyz,1)
    temp = xyz(i,:);
    xyz(i,:) = [nx-temp(1) ny-temp(2) temp(3)];
%     xyz(i,:) = [-temp(1) -temp(2) temp(3)];
end

